Skip to content

Switch Keycloak Integration to NGINX Proxy for Flexible Authentication Setup#718

Merged
aaronzi merged 10 commits into
eclipse-basyx:mainfrom
geso02:keycloak-ci-nginx
Apr 30, 2025
Merged

Switch Keycloak Integration to NGINX Proxy for Flexible Authentication Setup#718
aaronzi merged 10 commits into
eclipse-basyx:mainfrom
geso02:keycloak-ci-nginx

Conversation

@geso02

@geso02 geso02 commented Apr 28, 2025

Copy link
Copy Markdown
Contributor

This PR replaces the former Keycloak plugin-based approach with an NGINX proxy setup.

Previously, a custom Keycloak plugin was required, which tightly coupled the solution to a specific Keycloak version. This made upgrades and maintenance more difficult.

The new approach uses an NGINX proxy to expose Keycloak and all other services under consistent subdomains (e.g., keycloak.basyx.localhost).
Docker services are configured to resolve these subdomains to the Docker host using host-gateway.
As a result, services now access Keycloak via the same URL as specified in the token's issuer claim, allowing Spring Boot's issuer validation to succeed without additional custom plugins.

This simplifies the setup, avoids Keycloak version dependencies, and improves maintainability and portability.

@geso02 geso02 changed the title Switch Keycloak Integration to NGINX Proxy for Flexible Authentication Setup [WIP] Switch Keycloak Integration to NGINX Proxy for Flexible Authentication Setup Apr 28, 2025
@geso02 geso02 changed the title [WIP] Switch Keycloak Integration to NGINX Proxy for Flexible Authentication Setup Switch Keycloak Integration to NGINX Proxy for Flexible Authentication Setup Apr 29, 2025
@aaronzi aaronzi merged commit 24a002f into eclipse-basyx:main Apr 30, 2025
28 checks passed
@geso02 geso02 deleted the keycloak-ci-nginx branch May 6, 2025 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants